<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        div {
            text-align: center;
            font-size: 28px;
            font-weight: bolder;
            cursor: pointer;
            color: #343558;
        }
        div:not(:last-child) {
            margin: 10px auto;
        }
        div:hover {
            color: #3435f9;
            font-size: 32px;
        }
    </style>
</head>
<body>
    <div data-url="https://officeweb365.com/viewfile/关于加快临时设施建设速度和保证建设标准的通知.docx">Word文档预览</div>
    <div data-url="https://officeweb365.com/viewfile/深入浅出HTML5游戏开发.pptx">PPT文档预览</div>
    <div data-url="https://officeweb365.com/viewfile/在线预览Office服务费用说明（预览示例文件）.xlsx">Excel文档预览</div>
    <div data-url="https://officeweb365.com/viewfile/业绩公布2013年第四季度及全年业绩.pdf">Pdf文档预览</div>
    <div data-url="http://47.108.251.213:10026/test.png">图片预览</div>
</body>
<link rel="stylesheet" href="./index.css">
<script src="./base64.js"></script>
<script src="./jquery.js"></script>
<script src="./index.js"></script>
<script>
    const els = $('div');
    for (let index = 0; index < els.length; index++) {
        const el = els[index];
        $(el).click(function(e) {
            var url = $(e.currentTarget).data('url');
            if (url && url.length > 0) {
                openUrl(url);
            }
        })
    }
</script>
</html>